package com.idea.tianmimi;

import android.content.Intent;
import android.view.LayoutInflater;
import android.view.View;
import android.view.View.OnClickListener;

public class Login_Activity extends DefalutTitleActivity implements OnClickListener{

	
	
	@Override
	protected View preInfoView() {
		
		return LayoutInflater.from(this).inflate(R.layout.login_page, null);
	}

	@Override
	protected void initView() {
		
		
		setLeftButton(0, "立即注册", this);
		setRightButton(0, "登陆", this);
		
		
	}

	@Override
	protected void initDate() {
		// TODO Auto-generated method stub
		
	}

	public void onClick(View v) {
		if(v.equals(getLBotton()))
		{
			startActivity(new Intent(Login_Activity.this,RegisterActivity.class));
		}
		else if (v.equals(getRBotton())) {
			
			startActivity(new Intent(Login_Activity.this,MainTabActivity.class));
		}
		
	}
	
	



}
